package top.xierongsheng.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 登录Dto
 *
 * @auther 谢荣生
 * @datetime 2020/10/27 15:53
 */
@Data
@Schema(description = "登录数据Dto")
@Accessors(chain = true)
public class LoginDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
